<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<script type="text/javascript" src="lib/PIE_IE678.js"></script>
<![endif]-->
<link href="css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="css/H-ui.admin.css" rel="stylesheet" type="text/css" />
<link href="lib/icheck/icheck.css" rel="stylesheet" type="text/css" />
<link href="lib/Hui-iconfont/1.0.6/iconfont.css" rel="stylesheet" type="text/css" />
<link href="lib/webuploader/0.1.5/webuploader.css" rel="stylesheet" type="text/css" />
<!--[if IE 6]>
<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>新增/编辑商户</title>
</head>
<body>
<div class="pd-20">
	<form action="<%=path%>/backstage/type-add" method="post" class="form form-horizontal" id="form-type-add">
		<input type="hidden" id="id" name="id" value='${type.cCode}' />
		<div class="row cl">
			<label class="form-label col-2"><span class="c-red">*</span>名称：</label>
			<div class="formControls col-10">
				<input type="text" class="input-text" value="${type.cName}" placeholder="" id="" name="cName" datatype="*" nullmsg="不能为空">
			</div>
		</div>
		<div class="row cl">
	
			<label class="form-label col-2"><span class="c-red">*</span>选择商品分类：</label>
			
			<div class="formControls col-2"> <span class="select-box">
				<select name="cGrade" class="select" id="select">
					<option value="0" selected>大类</option>
					<option value="0">--</option>
					<c:forEach items="${typesOne}" var="type1">
					<option value="${type1.cCode}"
					<c:if test="${type.cGrade==type1.cCode}">selected</c:if>  
					<c:if test="${type.cGrade==0&&type.cBelong==type1.cCode}">selected</c:if>
					>${type1.cName}</option>
					</c:forEach>
				</select>
				</span> 
			</div>
			
			<div class="formControls col-3"> <span class="select-box">
				<select name="cBelong" class="select" id="select-two">
					<option value="0" selected>中类</option>
					<c:forEach items="${typesTwo}" var="type2">
					<option value="${type2.cCode}" <c:if test="${type.cBelong==type2.cCode}">selected</c:if>  > ${type2.cName} </option>
					</c:forEach>
				</select>
				</span> 
			</div>
		</div>
		<input type="hidden" name="cIsziying" value="1"/>
		<input type="hidden" name="cMod" value="品类" />
		
		<%-- <div class="row cl">
			<label class="form-label col-2">店铺：</label>
			<div class="formControls col-2"> <span class="select-box">
				<select name="cSid" class="select" id="select-three">
					<option value="0">--</option>
					<c:forEach items="${shops}" var="shop2">
					<option value="${shop2.cId}" <c:if test="${shop2.cId==type.cSid}">selected</c:if>>${shop2.cSname}</option>
					</c:forEach> 
				</select>
				</span> 
			</div>
		</div> --%>
		<div class="row cl">
			<label class="form-label col-2">关键词：</label>
			<div class="formControls col-4">
				<input type="text" name="cKeyword" id="" placeholder="" value="${type.cKeyword}" class="input-text" datatype="*" nullmsg="不能为空">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-2">排序值：</label>
			<div class="formControls col-2">
				<input type="text" class="input-text" value="${type.cSort}" placeholder="" id="" name="cSort" datatype="n" nullmsg="不能为空">
			</div>
		</div>
		<div class="row cl">
			<c:if test="${type.cIco!=null&&type.cIco!=''}">
			<label class="form-label col-2"></label>
			<div class="formControls col-10"><img src="<%=imagePath%>${type.cIco}" width="100" border="0" /></div>
			</c:if>
		</div>
		<div class="row cl">
			<label class="form-label col-2">品类小图标：（显示在品类列表）</label>
			<div class="formControls col-10">
				<div class="uploader-thum-container">
					<div id="fileList" class="uploader-list"></div>
					<div id="filePicker">选择图片</div>
					<button id="btn-star" type="button"  class="btn btn-default btn-uploadstar radius ml-10" style="display: none"></button>
				</div>
			</div>
		</div>
		<input type="hidden" id="cIco" name="cIco" value="${type.cIco}" datatype="*" nullmsg="不能为空"/>
		<div class="row cl">
			<c:if test="${type.cAlias!=null&&type.cAlias!=''}">
			<label class="form-label col-2"></label>
			<div class="formControls col-10"><img src="<%=imagePath%>${type.cAlias}" width="100" border="0" /></div> 
			</c:if>
		</div>
		<div class="row cl">
			<label class="form-label col-2">中类图标：（显示在九宫格）</label>
			<div class="formControls col-10">
				<div class="uploader-thum-container">
					<div id="fileList2" class="uploader-list"></div>
					<div id="filePicker2">选择图片</div>
					<button id="btn-star2" type="button"  class="btn btn-default btn-uploadstar radius ml-10" style="display: none"></button>
				</div>
			</div>
		</div>
		<input type="hidden" id="cAlias" name="cAlias" value="${type.cAlias}" />
		<div class="row cl">
			<label class="form-label col-2">来源：</label>
			<div class="formControls col-10">
			<span class="select-box">
				<select name="sources" class="select" id="select-two">
					<option value="sys" selected <c:if test="${type.sources=='sys'}">selected</c:if>>系统</option>
					<option value="erp" <c:if test="${type.sources=='erp'}">selected</c:if>>ERP</option>
				</select>
				</span> 
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-2">品类描述：</label>
			<div class="formControls col-10">
				<textarea name="cDes" cols="" rows="" class="textarea"  placeholder="" onKeyUp="textarealength(this,200)">${type.cDes}</textarea>
				<p class="textarea-numberbar"><em class="textarea-length">0</em>/200</p>
			</div>
		</div>
		

		<div class="row cl">
			<div class="col-10 col-offset-2">
				<button onClick="type_save_submit();" class="btn btn-primary radius" type="submit"><i class="Hui-iconfont">&#xe632;</i> 保存并提交审核</button>
				<button onClick="layer_close();" class="btn btn-default radius" type="button">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>
			</div>
		</div>
	</form>
</div>
</div>
<script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script> 
<script type="text/javascript" src="lib/layer/2.1/layer.js"></script> 
<script type="text/javascript" src="lib/My97DatePicker/WdatePicker.js"></script> 
<script type="text/javascript" src="lib/icheck/jquery.icheck.min.js"></script> 
<script type="text/javascript" src="lib/Validform/5.3.2/Validform.min.js"></script> 
<script type="text/javascript" src="lib/webuploader/0.1.5/webuploader.min.js"></script> 
<script type="text/javascript" src="lib/ueditor/1.4.3/ueditor.config.js"></script>
<script type="text/javascript" src="lib/ueditor/1.4.3/ueditor.all.min.js"> </script>
<script type="text/javascript" src="lib/ueditor/1.4.3/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript" src="js/H-ui.js"></script> 
<script type="text/javascript" src="js/H-ui.admin.js"></script> 
<script type="text/javascript">
var base_path = "<%=path%>";
</script>
<script type="text/javascript" src="js/type_add2.js"></script>
</body>
</html>